﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Security;

namespace InfoSite.SiteMembership.Interface
{
	public interface IMembershipService
	{
		int MinPasswordLength { get; }

		bool IsAuthorizedRequest { get; }

		bool ValidateUser(string email, string password);
		
		MembershipUser CreateUser(string email, string password, bool isApproved, out MembershipCreateStatus status);

		void DeleteUser(string email);

		string ResetPassword(string email);

		bool ChangePassword(string email, string oldPassword, string newPassword);

		string GeneratePassword(int length, int numberOfNonAlphanumericCharacters);
	}
}
